/**
 * this class is the pagebus message topic definition
 * @author maoanapex88@163.com Mao Anping
 */
jweb.gdgsuzhou.webmusic.Constants = function(params){
	/**
	 * a message key for logger message.
	 * message format (level:'DEBUG|INFO|WARN|ERROR|FATAL', content:'your message')
	 */
	this.topicLog ='LOGGER';
	/**
	 * a message key for midi device changes
	 * message format: {ioType:'input|output', data:{obj of midiAccess.input or output}}
	 */
	this.midiDevice = 'MIDIDevice';
	/**
	 * a message key for midi message
	 * message format : {event:{this obj of raw midi message}, midiAccess:midiAccess obj, audioContext: context obj} 
	 */
	this.midiMessage = 'MIDIMessage';
	/**
	 * a message for midiAccess acquired
	 * message format: {midiAccess:midiAccess}
	 */
	this.midiAccessed = 'MIDIAccessed';
	/**
	 * a message for audioContext acquired
	 * message format: {audioContext:audioContext obj}
	 */
	this.contextInited = 'contextInited';
	/**
	 *  data {audioNode:node}
	 * a message for webmidi link audio not ready
	 * the sf2synth.js project is very simple, there is no audio effects, so audio system
	 * connect it to synthesizer.
	 * we hacked into sf2synth a little.
	 * comment out //this.gainMaster.connect(this.ctx.destination);
	 * and publish the audio node out and let the bridge to connect it to synthesizer system
	 */
	this.waveTableNodeReady = 'WMLGainMasterOut';
	/**
	 * the master gain node in synthesizer
	 * similar as above.
	 */
	this.synthNodeReady = 'synthGainMasterOut';
	this.synth1Ready ='synth1Ready';
	this.synth2Ready ='synth2Ready';
}
jweb.gdgsuzhou.webmusic.Constants.prototype ={}
var constants = new jweb.gdgsuzhou.webmusic.Constants();
